package com.leyou.service;

import com.leyou.common.vo.PageResult;
import com.leyou.search.pojo.Brand;
import com.leyou.search.pojo.BrandDTO;

import java.util.List;


public interface IBrandService {

    PageResult<BrandDTO> queryBrandByPage(Integer page, Integer rows, String sortBy, Boolean desc, String key);

    void saveBrand(BrandDTO brandDTO, List<Long> cids);

    void updateBrand(BrandDTO brand, List<Long> cids);

    Boolean deleteBrand(Long bid);

    BrandDTO queryById(Long brandId);

    List<BrandDTO> queryBrandByCid(Long cid);

    List<BrandDTO> queryBrandByIds(List<Long> bids);
}
